﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;

namespace Web.Context.Analysis.Entities
{
    public class SettingNode
    {
        public void SetPropertyVale(XmlNode settingNode)
        {
            Name = SettingHelper.GetArrValue(settingNode, SettingHelper.NAME);
            ElementName = SettingHelper.GetArrValue(settingNode, SettingHelper.ELEMENT_NAME);
            ElementContextString = SettingHelper.GetArrValue(settingNode, SettingHelper.ELEMENT_CONTEXT_STRING);
            ElementClass = SettingHelper.GetArrValue(settingNode, SettingHelper.ELEMENT_CLASS);
            ValProperty = SettingHelper.GetArrValue(settingNode, SettingHelper.VAL_PROPERTY);
            ElementId = SettingHelper.GetArrValue(settingNode, SettingHelper.ELEMENT_ID);
            Key = SettingHelper.GetArrValue(settingNode, SettingHelper.KEY);

        }
        public string Name { get; set; }
        public string ElementName { set; get; }
        public string ElementContextString { set; get; }
        public string ElementClass { set; get; }
        public string ElementId { set; get; }
        public string ValProperty { set; get; }
        public string Key { set; get; }

        public HtmlElement HtmlContext { get; set; }
    }
}
